//
//  DCAppVersionTool.m
//  商城
//
//  Created by runone02 on 2018/8/27.
//  Copyright © 2018年 liqiyun. All rights reserved.
//

#import "DCAppVersionTool.h"

@implementation DCAppVersionTool

//获取保存的上一个版本
+ (NSString *)GetLastOneAppVersion{
    return [[NSUserDefaults standardUserDefaults]stringForKey:@"AppVersion"];
}

//保存新版本信息
+ (void)SaveNewAppVersion:(NSString *)version{
    [[NSUserDefaults standardUserDefaults]setObject:version forKey:@"AppVersion"];  //保存Key名
    [[NSUserDefaults standardUserDefaults]synchronize];
}
@end
